package cn.tedu.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

@Data
@Accessors(chain = true)
public class CategoryUpdateInfoParam {

    @ApiModelProperty(value = "类别名称", required = true, example = "类别名称1")
    private String name;

    @ApiModelProperty(value = "类别关键词", required = true, example = "keywords")
    private String keywords;

    @Range(max = 99, message = "排序序号必须在0~99之间")
    @ApiModelProperty(value = "排序序号，必须在0~99之间", required = true, example = "1")
    private Integer sort;

    @ApiModelProperty(value = "类别图标", required = true, example = "暂时无")
    private String icon;
}
